package com.csun.cmny.provider.model.dto.rfid;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-22 15:25
 * @Description: the class rfid event page query
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class RfidEventPageQuery extends BaseQuery {

    private static final long serialVersionUID = -3062343642527424579L;

    /**
     * 门禁读卡器Id
     */
    private Long readerId;

    /**
     * 门禁读卡器编号
     */
    private String readerNo;

    /**
     * 门禁卡标签Id
     */
    private Long labelId;

    /**
     * 门禁卡标签编号
     */
    private String labelNo;

    /**
     * 老人姓名
     */
    private String oldmanName;

    /**
     * 门禁卡类型
     */
    private String roleName;

    /**
     * 开始查询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startQueryTime;

    /**
     * 结束查询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endQueryTime;

    /**
     * 组织Id
     */
    private Long groupId;

}
